package com.qinggeng.project.system.service;

import com.qinggeng.project.system.domain.GiftProbability;

import java.math.BigDecimal;
import java.util.List;

public interface IGiftProbabilityService {

    /**
     * 新增奖品中奖率
     * @param giftProbability
     * @return
     */
    int insertGiftProbability(GiftProbability giftProbability);


    /**
     * 更新奖品中奖率
     * @param giftProbability
     * @return
     */
    int updateGiftProbability(GiftProbability giftProbability);

    List<GiftProbability> selectGiftProbabilityList(GiftProbability giftProbability);

    GiftProbability selectGiftProbabilityById(Long id);

    int deleteGiftProbabilityByIds(Long[] ids);

    /**
     * 更具商品价格查询助力次数
     * @param goodsPrice
     */
    GiftProbability selectHelpNumByGoodsPrice(BigDecimal goodsPrice);

    BigDecimal getGiftProbability(String GiftRate);
}
